import Vue from 'vue'
import VueRouter from 'vue-router'

import Login from '@/views/Login.vue'
import Register from '@/views/Register.vue'
import Article from '@/views/Article.vue'
import List from '@/views/List.vue'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/login',
      component: Login,
    },
    {
      path: '/register',
      component: Register,
    },
    {
      path: '/article',
      component: Article,
    },
    {
      path: '/list',
      component: List,
    },
  ],
})

export default router
